﻿/// <reference path="../game/fourkill.util.js" />
/// <reference path="../painters/fourkill.painter.singletons.js" />

var TreeObject = GameObject.extend({
    initialize: function initialize(treeType) {
        GameObject.initialize.call(this);
        this.treeType = treeType == null ? "FourTriangleTree" : treeType;
        this.color = "rgb(0, " + util.random(60, 128) + ", " + util.random(0, 60) + ")";
    },
    getPainter: function getPainter() { return Painters.FourTriangleTree; }
});
